package com.imple.dizhiAction;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.bean.UserBean;
import com.bll.Action;
import com.dao.UserDao;

public class ShowDizhiAction implements Action{

	public String execute(HttpServletRequest request,
			HttpServletResponse response) {
		int userId=Integer.parseInt(request.getSession().getAttribute("userId").toString());
		UserDao dao=new UserDao();
		UserBean bean=dao.selectById(userId);
		
		String dizhi=bean.getAddress();
		System.out.println("dizhi"+dizhi);
		return "http://www.weixingongzuoshi.com/weizhan/dizhi.aspx?dizhi="+dizhi;
	}

}
